package com.ayanami.userservice.mapper;

import com.ayanami.userservice.entity.TbUser;
import com.ayanami.userservice.vo.TbUserVO;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author ayanami
 * @since 2020-07-20
 */
public interface TbUserMapper extends BaseMapper<TbUser> {
    /**
     * @return 查询
     */
    public IPage<TbUser> findUserAndDept(Page<TbUser> page,@Param(Constants.WRAPPER)QueryWrapper<TbUser> wrapper);
}
